import { Module } from '@nestjs/common';
import { TournamentService } from './tournament.service';
import { TournamentController } from './tournament.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Tournament } from './entities/tournament.entity';
// import { UserService } from 'src/modules/user/user.service';
import { EventModule } from '../event/event.module';
import { TournamentCacheService } from './tournament.cache.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Tournament]),
    // EventToPlayerModule,
    EventModule,
  ],
  controllers: [TournamentController],
  providers: [TournamentService, TournamentCacheService],
  exports: [TournamentService, TournamentCacheService],
})
export class TournamentModule {}
